#pragma once
#include "afxwin.h"


// CLineAdd dialog

class CLineAdd : public CDialogEx
{
	DECLARE_DYNAMIC(CLineAdd)

public:
	CLineAdd(CWnd* pParent = NULL);   // standard constructor
	virtual ~CLineAdd();

// Dialog Data
	enum { IDD = IDD_LINE_ADD };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

public:
  virtual BOOL OnInitDialog();
  afx_msg void OnTemplateStationSelChange();
  afx_msg void OnTemplateLineSelChange();

public:
  tstring STLName(void) { return Name.GetBuffer(0); }
  tstring tstation(void) { return Station.GetBuffer(0); }
  tstring TemplateLineName(void) { return template_line_name_.GetBuffer(0); }

public:
  CString Name;
  int NumLines;
  BOOL FixStation;
  CString Station;
  int NumBoxes;
  BOOL LinePairing;
  const CMeasureLine *TemplateLine;

public:
  CComboBox wnd_station_list_;
  CListBox wnd_template_station_;
  CComboBox wnd_template_line_;
  CString template_line_name_;
};
